package com.guigu.health.service;

import com.github.pagehelper.PageInfo;
import com.guigu.health.pojo.CheckItem;
import com.guigu.health.pojo.CheckItemExample;

import java.util.List;

/**
 * @ClassName:CheckItemService
 * @Description:检查项CRUD业务
 * @Author:longtao
 * @Date:2021/4/14
 * @Version:1.0
 */
public interface CheckItemService {

    /**
     * 显示检查项
     * @param name
     * @param pageNum
     * @param pageSize
     * @return
     */
    public PageInfo<CheckItem> queryAllCheckItem(CheckItemExample name, Integer pageNum, Integer pageSize);

    /**
     * 修改检查项
     * @param checkItem
     * @param example
     * @return
     */
    public boolean updateCheckItem(CheckItem checkItem, CheckItemExample example);

    /**
     * 删除检查项
     * @param id
     * @return
     */
    public boolean deleteCheckItem(Integer id);

    /**
     * 新增检查项
     * @param item
     * @return
     */
    public boolean addCheckItem(CheckItem item);

    public List<CheckItem> querAll();

    /**
     * 编码名不一致
     * @param code
     * @return
     */
    int  count(String code);
}
